package Test1;

public class Thread_Demo2 {
    public static void main(String[] args) {
        lian_xi_Demo2 t1 = new lian_xi_Demo2();
        lian_xi_Demo2 t2 = new lian_xi_Demo2();
        t1.start();
        t1.setName("线程1");
        t2.start();
        t2.setName("线程2");
    }
}
